<?php
/**
 @prefix : <http://purl.org/net/ns/doas#> .
 @about: "<app/view/layout/json.php>", a: ":PHPScript",
 :shortdesc "JSON Template";
 :author [:name "Logue"; :homepage <http://logue.be/> ];
 :license <http://www.gnu.org/licenses/gpl-3.0.html>.
*/
// Lorelei JSON Template
// Copyright (c)2008 Logue <http://logue.be/> All rights reserved.

// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.

Configure::write('debug', 0);
/*
if (isset($modified) && !empty($modified)) {
	$modified = gmdate('D, d M Y H:i:s', strtotime($modified, time())) . ' GMT';
} else {
	$modified = gmdate('D, d M Y H:i:s').' GMT';
}
*/
$buffer = $content_for_layout;
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
//header("Last-Modified: $modified");
header('Content-Type: application/json');
header('Content-Length: '.strlen($buffer));
?>